const express = require("express");
const jdData = require("./data.json");
const app = express();
app.get("/",(req,res)=>{
	res.send(jdData.map(item=>(`
		<div>
			<h3>${item.keyword}</h3>
			<div style="display:flex;justify-content: space-between;">
				${item.level2words.map(info=>(`
					<div>
						<img height="80" src="${info.imageUrl}" alt="">
						<h5>${info.keyword}</h5>	
					</div>
				`)).join("")}
			</div>
			
		</div>
	`)).join(""))
})
app.listen(8090,()=>{
	console.log("success");
})